using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
public enum SPDRP
{
SPDRP_DEVICEDESC = 0,
SPDRP_HARDWAREID = 0x1,
SPDRP_COMPATIBLEIDS = 0x2,
SPDRP_UNUSED0 = 0x3,
SPDRP_SERVICE = 0x4,
SPDRP_UNUSED1 = 0x5,
SPDRP_UNUSED2 = 0x6,
SPDRP_CLASS = 0x7,
SPDRP_CLASSGUID = 0x8,
SPDRP_DRIVER = 0x9,
SPDRP_CONFIGFLAGS = 0xa,
SPDRP_MFG = 0xb,
SPDRP_FRIENDLYNAME = 0xc,
SPDRP_LOCATION_INFORMATION = 0xd,
SPDRP_PHYSICAL_DEVICE_OBJECT_NAME = 0xe,
SPDRP_CAPABILITIES = 0xf,
SPDRP_UI_NUMBER = 0x10,
SPDRP_UPPERFILTERS = 0x11,
SPDRP_LOWERFILTERS = 0x12,
SPDRP_BUSTYPEGUID = 0x13,
SPDRP_LEGACYBUSTYPE = 0x14,
SPDRP_BUSNUMBER = 0x15,
SPDRP_ENUMERATOR_NAME = 0x16,
SPDRP_SECURITY = 0x17,
SPDRP_SECURITY_SDS = 0x18,
SPDRP_DEVTYPE = 0x19,
SPDRP_EXCLUSIVE = 0x1a,
SPDRP_CHARACTERISTICS = 0x1b,
SPDRP_ADDRESS = 0x1c,
SPDRP_UI_NUMBER_DESC_FORMAT = 0x1e,
SPDRP_MAXIMUM_PROPERTY = 0x1f
}
Public Enum SPDRP
SPDRP_DEVICEDESC = 0
SPDRP_HARDWAREID = &H1
SPDRP_COMPATIBLEIDS = &H2
SPDRP_UNUSED0 = &H3
SPDRP_SERVICE = &H4
SPDRP_UNUSED1 = &H5
SPDRP_UNUSED2 = &H6
SPDRP_CLASS = &H7
SPDRP_CLASSGUID = &H8
SPDRP_DRIVER = &H9
SPDRP_CONFIGFLAGS = &HA
SPDRP_MFG = &HB
SPDRP_FRIENDLYNAME = &HC
SPDRP_LOCATION_INFORMATION = &HD
SPDRP_PHYSICAL_DEVICE_OBJECT_NAME = &HE
SPDRP_CAPABILITIES = &HF
SPDRP_UI_NUMBER = &H10
SPDRP_UPPERFILTERS = &H11
SPDRP_LOWERFILTERS = &H12
SPDRP_BUSTYPEGUID = &H13
SPDRP_LEGACYBUSTYPE = &H14
SPDRP_BUSNUMBER = &H15
SPDRP_ENUMERATOR_NAME = &H16
SPDRP_SECURITY = &H17
SPDRP_SECURITY_SDS = &H18
SPDRP_DEVTYPE = &H19
SPDRP_EXCLUSIVE = &H1A
SPDRP_CHARACTERISTICS = &H1B
SPDRP_ADDRESS = &H1C
SPDRP_UI_NUMBER_DESC_FORMAT = &H1E
SPDRP_MAXIMUM_PROPERTY = &H1F
End Enum
Here is a C# and VB.net version for SPDRP, notice to use this enum in C# you have to import "using Microsoft.VisualBasic"
kind of funny and ironic I like c# it is kind of like a JAVA, C++ (on a lower scale), and VB hybrid.